<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\library\Token;
use think\facade\Session;

class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function initialize()
    {
        parent::initialize();
    }

    public function index()
    {
        //跳转到user
        $url = Session::get('referer');
        $url = $url ? $url : $this->request->url();
        $this->redirect("home/index",['url' => $url]); 
    }

}
